package com.sh.data.engine.repository.dao.normalization.standard.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.*;

/**
 * @author binghe
 * @email binghe.yxh@xuelangyun.com
 */
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_dictionary_mapping")
@Data
@Builder(toBuilder = true)
public class DictionaryMappingEntity extends EngineBaseModel<DictionaryMappingEntity> {

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 字典id
     */
    private Long dictId;

    /**
     * 未绑定数量
     */
    private Integer notBoundCount;

    /**
     * 已绑定数量
     */
    private Integer boundCount;

    /**
     * 来源 0虎符
     */
    private Integer mapSource;

    /**
     * 删除状态 0-删除 1-未删除
     */
    @TableLogic(value = "1", delval = "0")
    private Integer rowState;

    //  @Tolerate
    //  public DictionaryMappingEntity(){}
}
